#ifndef FFMPEG_VIDEORECEIVE_H
#define FFMPEG_VIDEORECEIVE_H
extern "C"
{
    #include <libavformat/avformat.h>
    #include <libavcodec/avcodec.h>
    #include <libavutil/avutil.h>
    #include <libswscale/swscale.h>
    #include <libavutil/hwcontext.h>
}
#include <QDebug>

class FFMPEG_VideoReceive
{
public:
    FFMPEG_VideoReceive();
    void FFMPEG_Init(void);


    AVFormatContext* fmt_ctx = nullptr;
    AVBufferRef *hw_device_ctx = nullptr;
    AVPacket packet; //一包
    AVFrame *frame; //一帧

};

#endif // FFMPEG_VIDEORECEIVE_H
